package cn.xclink.kernel.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import cn.xclink.common.util.SpringUtils;
import cn.xclink.kernel.service.DicService;

/**
 * 初始化数据字典
 * @author yxt
 *
 */
public class CacheDicListener implements ServletContextListener{
	
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		DicService dicService = SpringUtils.getBean("dicService");
		dicService.initCache();
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		
	}
}
